/*
 * Selling Partner API for Fulfillment Inbound
 * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
 *
 * OpenAPI spec version: v0
 */


package com.dhecp.project.api.domain;

import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Objects;

/**
 * The request schema for an inbound shipment.
 */
@ApiModel(description = "The request schema for an inbound shipment.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-10-14T16:02:28.581+08:00")
public class InboundShipmentRequest {
  @SerializedName("InboundShipmentHeader")
  private InboundShipmentHeader inboundShipmentHeader = null;

  @SerializedName("InboundShipmentItems")
  private InboundShipmentItemList inboundShipmentItems = null;

  @SerializedName("MarketplaceId")
  private String marketplaceId = null;

  public InboundShipmentRequest inboundShipmentHeader(InboundShipmentHeader inboundShipmentHeader) {
    this.inboundShipmentHeader = inboundShipmentHeader;
    return this;
  }

   /**
   * Get inboundShipmentHeader
   * @return inboundShipmentHeader
  **/
  @ApiModelProperty(required = true, value = "")
  public InboundShipmentHeader getInboundShipmentHeader() {
    return inboundShipmentHeader;
  }

  public void setInboundShipmentHeader(InboundShipmentHeader inboundShipmentHeader) {
    this.inboundShipmentHeader = inboundShipmentHeader;
  }

  public InboundShipmentRequest inboundShipmentItems(InboundShipmentItemList inboundShipmentItems) {
    this.inboundShipmentItems = inboundShipmentItems;
    return this;
  }

   /**
   * Get inboundShipmentItems
   * @return inboundShipmentItems
  **/
  @ApiModelProperty(required = true, value = "")
  public InboundShipmentItemList getInboundShipmentItems() {
    return inboundShipmentItems;
  }

  public void setInboundShipmentItems(InboundShipmentItemList inboundShipmentItems) {
    this.inboundShipmentItems = inboundShipmentItems;
  }

  public InboundShipmentRequest marketplaceId(String marketplaceId) {
    this.marketplaceId = marketplaceId;
    return this;
  }

   /**
   * A marketplace identifier. Specifies the marketplace where the product would be stored.
   * @return marketplaceId
  **/
  @ApiModelProperty(required = true, value = "A marketplace identifier. Specifies the marketplace where the product would be stored.")
  public String getMarketplaceId() {
    return marketplaceId;
  }

  public void setMarketplaceId(String marketplaceId) {
    this.marketplaceId = marketplaceId;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InboundShipmentRequest inboundShipmentRequest = (InboundShipmentRequest) o;
    return Objects.equals(this.inboundShipmentHeader, inboundShipmentRequest.inboundShipmentHeader) &&
        Objects.equals(this.inboundShipmentItems, inboundShipmentRequest.inboundShipmentItems) &&
        Objects.equals(this.marketplaceId, inboundShipmentRequest.marketplaceId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(inboundShipmentHeader, inboundShipmentItems, marketplaceId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InboundShipmentRequest {\n");
    
    sb.append("    inboundShipmentHeader: ").append(toIndentedString(inboundShipmentHeader)).append("\n");
    sb.append("    inboundShipmentItems: ").append(toIndentedString(inboundShipmentItems)).append("\n");
    sb.append("    marketplaceId: ").append(toIndentedString(marketplaceId)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

